const express = require('express');
const path = require('path');
const routes = require('./routes/routes');

const app = express();
app.use(express.json()); // for parsing application/json

app.get('', (req, res) => {
  res.set('Content-Type', 'text/html')
  res.sendFile(path.join(__dirname, 'index.html'))
})
// Use the user routes
// app.use('/api', routes);
app.use('/ncApi', routes); // 电子档案接口集

module.exports = app;
